var gulp = require("gulp");
var connect = require("gulp-connect");
var sass = require("gulp-ruby-sass");
var uglify = require("gulp-uglify");

gulp.task("F5",function(){
	gulp.src("./*.html").pipe(connect.reload());
})
gulp.task("js",function(){
	gulp.src("./js/*.js").pipe(uglify()).pipe(gulp.dest("./jsZip"));
})
gulp.task("watch",function(){
	//启动一个服务器
	connect.server({
		livereload:true//实时刷新
	});
	gulp.watch("./*.html",["F5"]);
	gulp.watch("./js/*.js",["js"]);
});

